home *** CD-ROM | disk | FTP | other *** search
- class stateBar.toolsBar extends MovieClip
- {
- var soundIsStop;
- var musicIsStop;
- var qltPanel;
- var sndPath;
- var confirmToMenu;
- function toolsBar()
- {
- super();
- this.soundIsStop._visible = false;
- this.musicIsStop._visible = false;
- this.qltPanel._visible = false;
- }
- function setQlt(p_qlt)
- {
- _global.ctn._quality = p_qlt;
- }
- function setSndPath(p_sndPath)
- {
- this.sndPath = p_sndPath;
- }
- function stopSound()
- {
- if(this.soundIsStop._visible == false)
- {
- this.soundIsStop._visible = true;
- this.sndPath.stopSound();
- }
- else
- {
- this.soundIsStop._visible = false;
- this.sndPath.returnSound();
- }
- }
- function stopMusic()
- {
- if(this.musicIsStop._visible == false)
- {
- this.musicIsStop._visible = true;
- this.sndPath.stopMusic();
- }
- else
- {
- this.musicIsStop._visible = false;
- this.sndPath.returnMusic();
- }
- }
- function menuBtnEvt()
- {
- this.confirmToMenu = this.attachMovie("confirmToMenu","confirmToMenu",this.getNextHighestDepth());
- }
- function activateQltPanel()
- {
- this.qltPanel._visible = true;
- this.qltPanel.setLight(_global.ctn._quality);
- }
- function isStopVisible()
- {
- if(this.sndPath.isSoundPlay == true)
- {
- this.soundIsStop._visible = false;
- }
- else
- {
- this.soundIsStop._visible = true;
- }
- if(this.sndPath.isMusicPlay == true)
- {
- this.musicIsStop._visible = false;
- }
- else
- {
- this.musicIsStop._visible = true;
- }
- }
- }
-